<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core">
<head>
<title>IGNORED</title>
</head>
<body>
	<ui:composition template="/WEB-INF/layouts/base-layout.xhtml">
		<ui:define name="windowTitle">
			Employees
		</ui:define>

		<ui:define name="content">

			<h:form id="empListForm">
				<f:event listener="#{employeeBean.getAllEmployees}"
					type="preRenderView" />

				<p:panel id="basic" header="Employees" footer="Employees"
					style="margin-bottom:20px">

					<p:dataTable value="#{employeeBean.employees}" var="e">
						<p:column headerText="Id">
							<h:outputText value="#{e.employeeId}" />
						</p:column>
						<p:column headerText="Name">
							<h:outputText value="#{e.name}" />
						</p:column>
						<p:column headerText="Age">
							<h:outputText value="#{e.age}" />
						</p:column>
						<p:column headerText="Gender">
							<h:outputText value="#{e.gender}" />
						</p:column>
						<p:column headerText="Mobile">
							<h:outputText value="#{e.mobile}" />
						</p:column>
						<p:column headerText="Landline">
							<h:outputText value="#{e.landline}" />
						</p:column>
												<p:column headerText="Address">
							<h:outputText value="#{e.address.address}" />
						</p:column>
					</p:dataTable>
				</p:panel>
			</h:form>
		</ui:define>
	</ui:composition>
</body>
</html>